package com.eian.boot.module.system.associations.user.dept.model.entity;

import com.eian.boot.mybatis.core.model.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 用户部门关联表 实体类
 *
 * @author alex.meng
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "t_sys_user_dept")
public class SysUserDeptEntity extends BaseEntity {

    /**
     * 用户ID
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 部门ID
     */
    @Column(value = "dept_id")
    private Long deptId;

    /**
     * 是否主部门：1-是，0-否
     */
    @Column(value = "is_main")
    private Integer isMain;
}

